package com.cskaoyan.bean.goods.wxbean;

import com.cskaoyan.bean.goods.MarketGoods;
import com.cskaoyan.bean.goods.MarketGoodsAttribute;
import com.cskaoyan.bean.goods.MarketGoodsProduct;
import com.cskaoyan.bean.goods.MarketGoodsSpecification;
import com.cskaoyan.bean.market.Brand;
import com.cskaoyan.bean.market.Issue;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Hu
 * @create 2021-09-18 14:14
 * @Description
 */
@NoArgsConstructor
@Data
public class GoodsDetailVO {

    //detail接收商品Id 反回以下参数

    //手动封装List
    private List<SpecificationListVO> specificationList = new ArrayList<SpecificationListVO>();
    //团购业务不需要做---null
    private List<Object> groupon;
    //issue 原marketbean中拿来的生成类---自动转
    private List<Issue> issue;
    //找参数默认设置0---默认值
    private Integer userHasCollect;
    //默认置空---默认值
    private String shareImage;
    //comment List  只显示头两条评论 但是记录listSize---手动VO
    private Comment comment = new Comment();
    //默认可以分享 true---默认值
    private Boolean share;
    // Attribute ---自动转
    private List<MarketGoodsAttribute> attribute;
    // 自动转
    private Brand brand;
    //MarketGoodsProduct---自动转
    private List<MarketGoodsProduct> productList;
    //MarketGoods---自动转
    private MarketGoods info;


    @NoArgsConstructor
    @Data
    public static class Comment {
        private List<CommentDataVO> data;
        private Integer count;

    }

}
